<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTagBlindsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tag_blinds', function (Blueprint $table) {
            $table->integer('tag_id')->comment('标签ID');
            $table->integer('item_id')->comment('对象ID');
            $table->string('item_type', 10)->comment('对象类型user content picture album');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tag_blinds');
    }
}
